package com.liuchuanzheng.lcz_wanandroid.ui.activity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.liuchuanzheng.lcz_wanandroid.MainActivity
import com.liuchuanzheng.lcz_wanandroid.R
import com.liuchuanzheng.lcz_wanandroid.base.BaseActivity
import com.liuchuanzheng.lcz_wanandroid.databinding.ActivitySplashBinding

class SplashActivity : BaseActivity() {
    lateinit var mViewBinding:ActivitySplashBinding
    override fun setContentView() {
        mViewBinding = ActivitySplashBinding.inflate(layoutInflater)
        setContentView(mViewBinding.root)
    }

    override fun doYourself() {
        startActivity(Intent(this,MainActivity::class.java))
        overridePendingTransition(R.anim.slide_bottom_to_top,R.anim.slide_top_to_bottom)
        finish()
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_splash)

    }
}